package com.heima.behavior.controller.v1;

import com.heima.behavior.dtos.ReadBehaviorDto;
import com.heima.behavior.dtos.UnLikesBehaviorDto;
import com.heima.behavior.service.ApUnlikesBehaviorService;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author shitou
 * @className ApUnlikesBehaviorController
 * @description: TODO
 */
@RestController
@RequestMapping("/api/v1/un_likes_behavior")
public class ApUnlikesBehaviorController {

    @Resource
    private ApUnlikesBehaviorService apUnlikesBehaviorService;

    /**
     * 不喜欢行为
     *
     * @param dto
     * @return
     */
    @PostMapping
    public ResponseResult unLikesBehavior(@RequestBody UnLikesBehaviorDto dto) {
        return apUnlikesBehaviorService.unLikesBehavior(dto);
    }
}
